@extends('admin.layouts.page', ['header' => strip_tags($header)])

@section('content')
    <!-- breadcrumb start -->
    @if(isset($breadcrumb) && !$is_page)
        @if ($breadcrumb)
            <section class="content-header" style="padding-top: 5px">
                <ol class="breadcrumb" style="position: static;float: left">
                    <li><a href="{{ admin_url('/') }}" no-pjax><i class="fa fa-dashboard"></i> {{__('Home')}}</a></li>
                    @foreach($breadcrumb as $item)
                        @if($loop->last)
                            <li class="active">
                                @if (\Illuminate\Support\Arr::has($item, 'icon'))
                                    <i class="fa fa-{{ $item['icon'] }}"></i>
                                @endif
                                {{ $item['text'] }}
                            </li>
                        @else
                            <li>
                                @if (\Illuminate\Support\Arr::has($item, 'url'))
                                    <a href="{{ admin_url(\Illuminate\Support\Arr::get($item, 'url')) }}" no-pjax>
                                        @if (\Illuminate\Support\Arr::has($item, 'icon'))
                                            <i class="fa fa-{{ $item['icon'] }}"></i>
                                        @endif
                                        {{ $item['text'] }}
                                    </a>
                                @else
                                    @if (\Illuminate\Support\Arr::has($item, 'icon'))
                                        <i class="fa fa-{{ $item['icon'] }}"></i>
                                    @endif
                                    {{ $item['text'] }}
                                @endif
                            </li>
                        @endif
                    @endforeach
                </ol>
            </section>
        @else
            <section class="content-header" style="padding-top: 10px">
                <h1 style="font-size: 18px;border-left: 4px solid  #e83c3c">
                    &nbsp; {!! $header ?: trans('admin.title') !!}
                    <small>{!! $description !!}</small>
                </h1>
            </section>
        @endif
    @endif
    <!-- breadcrumb end -->
    @if($is_page)
        <section class="content" style="padding-top: 0">
    @else
        <section class="content" style="padding-top: 10px">
            @include('admin::partials.alerts')
    @endif
        @include('admin::partials.exception')
        @include('admin::partials.toastr')

        @if($_view_)
            @include($_view_['view'], $_view_['data'])
        @else
            {!! $_content_ !!}
        @endif

    </section>
@endsection
